﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Aggregation_Clustering
{
    class Cluster
    {
        public Cluster()
        {
            First = null;
            num = 0;
        }
        public void Add(Element t, int id)
        {//向cluster增加元素
            t.setClusterID(id);
            if (First == null)
            {
                First = t;
            }
            else
            {
                First.Before = t;
                t.After = First;
                First = t;
            }
            num++;
        }
        public Element First;
        public int num;
        public int NumberLinks;
    }
}
